package org.libraq.hrm.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.libraq.hrm.vo.AggCourseVo;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
@AllArgsConstructor
public class PageList<T> {
    private long total;
    private List<T> rows = new ArrayList<>();
    //聚合结果  如何定义
    Map<String,List<AggCourseVo>> aggMap =  new HashMap<>();

    public PageList() {
    }

    // 这是给非Es用的
    public PageList(long total, List<T> rows) {
        this.total = total;
        this.rows = rows;
    }
}
